﻿<Window x:Class="S7.Windows.Music.MediaPlayer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:dg="http://schemas.microsoft.com/wpf/2008/toolkit"
    Title="Media Player" Height="413" Width="969" Background="{DynamicResource BackgroundColor}" Loaded="Window_Loaded">
<Grid x:Name="LayoutRoot" RenderTransformOrigin="0.5,0.5">
	<Grid.RenderTransform>
		<TransformGroup>
			<ScaleTransform/>
			<SkewTransform AngleY="-0.073"/>
			<RotateTransform/>
			<TranslateTransform Y="-0.499"/>
		</TransformGroup>
	</Grid.RenderTransform>
		<Grid Margin="8,8,336,0">
			<Grid.RowDefinitions>
				<RowDefinition Height="322*" />
				<RowDefinition Height="53*" />
			</Grid.RowDefinitions>
			<MediaElement x:Name="MediaEL" MediaOpened="MediaEL_MediaOpened" MediaEnded="MediaEL_MediaEnded"
				LoadedBehavior="Manual" MouseLeftButtonUp="MediaEL_MouseLeftButtonUp"/>
			<StackPanel Orientation="Vertical" Margin="120,0" Grid.Row="1">
				<StackPanel x:Name="SPSeekBar" HorizontalAlignment="Stretch">
					<Slider x:Name="seekBar" Thumb.DragStarted="seekBar_DragStarted" 
						Thumb.DragCompleted="seekBar_DragCompleted" />
				</StackPanel>
				<Rectangle Height="5"/>
				<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
					<Button x:Name="btnPrevious" Click="btnMoveForward_Click"  
						Width="50" Height="25">
						<Image Source="/S7;Component/Resources/Graphics/MediaPlayerIcons/stock_media-prev.png"/>
					</Button>
					<Button x:Name="btnMoveBackward" Click="btnMoveBackward_Click"  
						Width="50" Height="25">
						<Image Source="/S7;Component/Resources/Graphics/MediaPlayerIcons/stock_media-rew.png"/>
					</Button>
					<Button x:Name="btnPlay" Click="btnPlay_Click" 
						Width="50" Height="25">
						<Image Source="/S7;Component/Resources/Graphics/MediaPlayerIcons/stock_media-play.png"/>
					</Button>
					<Button x:Name="btnStop" Click="btnStop_Click"  
						Width="50" Height="25">
						<Image Source="/S7;Component/Resources/Graphics/MediaPlayerIcons/stock_media-stop.png"/>
					</Button>
					<Button x:Name="btnMoveForward" Click="btnMoveForward_Click"  
						Width="50" Height="25">
						<Image Source="/S7;Component/Resources/Graphics/MediaPlayerIcons/stock_media-fwd.png"/>
					</Button>
					<Button x:Name="btnNext" Click="btnMoveBackward_Click"  
						Width="50" Height="25">
						<Image Source="/S7;Component/Resources/Graphics/MediaPlayerIcons/stock_media-next.png"/>
					</Button>
				</StackPanel>
			</StackPanel>
		</Grid>
		    		<dg:DataGrid x:Name="lbSongs" Background="#FF333333" AutoGenerateColumns="False" Margin="0,8" HorizontalAlignment="Right" Width="332" IsReadOnly="True" MouseDoubleClick="lbSongs_MouseDoubleClick">
    			<dg:DataGrid.Columns>
    				<dg:DataGridTextColumn Header="Name" Binding="{Binding Name}"/>
    				<dg:DataGridTextColumn Header="Artist" Binding="{Binding Artist}"/>
    			</dg:DataGrid.Columns>
    		</dg:DataGrid>
	</Grid>
</Window>
